<%@ page language="java" contentType="application/xhtml+xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>
<u:html-top title="Create A New Protocol"/>

<c:if test="${userHasWritePrivileges }">

<form method="POST" action="validate">
<div class="formLayout">
 <label for="f_title">Title</label>
 <input id="f_title" name="title" value="<c:out value="${protocol.title}" escapeXml="true"/>"/>
 <br/>
 
  <label for="f_type">Type</label>
 <select id="f_type" name="type">
 	<option></option>
 	<option value="extraction" <c:if test="${protocol.type eq 'extraction'}"> selected='true' </c:if> >Extraction</option>
 	<option value="purification" <c:if test="${protocol.type eq 'purification'}"> selected='true' </c:if> >Purification</option>
 </select>
 <br/>
 
  <label for="f_content">Type</label>
 <textarea id="f_content" name="content"><c:out value="${protocol.content}" escapeXml="true"/></textarea>
 <br/>

 <label>&nbsp;</label><input type="submit" /><br/>
</div>
</form>

</c:if>

<u:html-bottom/>